/**
 * 
 */
package com.swim.platform.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.swim.platform.entity.PlatformReservation;
import com.swim.platform.dao.PlatformReservationDao;

/**
 * 平台预约Service
 * @author ljw
 * @version 2023-04-23
 */
@Service
@Transactional(readOnly=true)
public class PlatformReservationService extends CrudService<PlatformReservationDao, PlatformReservation> {
	
	/**
	 * 获取单条数据
	 * @param platformReservation
	 * @return
	 */
	@Override
	public PlatformReservation get(PlatformReservation platformReservation) {
		return super.get(platformReservation);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param platformReservation
	 * @return
	 */
	@Override
	public Page<PlatformReservation> findPage(Page<PlatformReservation> page, PlatformReservation platformReservation) {
		return super.findPage(page, platformReservation);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param platformReservation
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(PlatformReservation platformReservation) {
		super.save(platformReservation);
	}
	
	/**
	 * 更新状态
	 * @param platformReservation
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(PlatformReservation platformReservation) {
		super.updateStatus(platformReservation);
	}
	
	/**
	 * 删除数据
	 * @param platformReservation
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(PlatformReservation platformReservation) {
		super.delete(platformReservation);
	}
	
}